import java.util.Scanner;

public class java2024_5_12 {
    //    public static void main(String[] args) {
////        Student student1 = new Student();
////        student1.setName("zhangsan");
////        student1.setAge(18);
////        student1.setGender("男");
////        student1.show();
////        System.out.println("----------------");
////        Student student2 = new Student("lisi",18,"女");
////        student2.show();
////        Student student = new Student();
////        System.out.println(Student.stuClassRoom);
////        System.out.println(student.stuClassRoom);
//    }
//    public static void main(String[] args) {
//        Teacher teacher = new Teacher();
//        teacher.setName("zhangsan");
//        teacher.setAge(33);
//        teacher.setGender("男");
//        System.out.println(teacher.getName() + " " +
//                teacher.getAge() + " " +
//                teacher.getGender() + " "
//                + Teacher.major);
//    }
//    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//
//
//
//
//
//    }
//    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.print("请输入一个数字：");
//        int number = scanner.nextInt();
//
//        int sum = 0;
//        while (number != 0) {
//            sum += number % 10;
//            number /= 10;
//        }
//        System.out.println("各个位数上的总和为："+sum);
//    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] array = new int[10];
        System.out.print("请输入10个数字：");
        for (int i = 0; i < array.length; i++) {
            array[i] = scanner.nextInt();
        }

        System.out.print("请输入目标数字：");
        int target = scanner.nextInt();
        for (int i = 0; i < array.length; i++) {
            if (array[i] != target) {
                System.out.print(array[i] + " 1");
            }
        }

    }

}
